from odoo import api, fields, models


class Roomkind_set(models.Model):
    _name = 'roomkind.set'
    _description = '房间信息'
    # _rec_name = 'name'

    commodity_number = fields.Char(
        '房间号',
        required=True
    )
    commodity_name = fields.Char(
        '房间名称',
        required=True
    )
    hotel_type = fields.Many2one(
        'commodity.type',
        string='房间类型',
        required=True,
        ondelete='set null'
    )
    hotel_building = fields.Many2one(
        'building.set',
        string='所在楼栋',
        required=True,
        ondelete='set null'
    )
    hotel_floor = fields.Many2one(
        'floor.set',
        string='所在楼层',
        required=True,
        ondelete='set null'
    )
    tell=fields.Char(
        '电话号码',
        required=True
    )
    door_password = fields.Char(
        '门锁码',
        required=True
    )
    dess = fields.Char(
        '特征描述',
        required=True
    )
